package com.example.xd.myijkplayer.my

/**
 * @auther XuDan on 2020/9/11.
 */
interface IControl {
    fun start()
    fun restart()
    fun pause()
    fun seekTo(pos: Long)
    fun isIdle(): Boolean
    fun isPreparing(): Boolean
    fun isPrepared(): Boolean
    fun isBufferingPlaying(): Boolean
    fun isBufferingPaused(): Boolean
    fun isPlaying(): Boolean
    fun isPaused(): Boolean
    fun isError(): Boolean
    fun isCompleted(): Boolean
    fun isFullScreen(): Boolean
    fun isTinyWindow(): Boolean
    fun isNormal(): Boolean
    fun duration(): Long
    fun currentPosition(): Long
    fun bufferPercentage(): Int
    fun enterFullScreen()
    fun exitFullScreen()
    fun enterTinyWindow()
    fun exitTinyWindow(): Boolean
    fun release()
}